package me.zhengjie.modules.website.service;

import me.zhengjie.modules.website.domain.AccessLogs;
import me.zhengjie.modules.website.dto.MonthlyStatisticsDto;
import org.springframework.data.domain.Pageable;
import me.zhengjie.modules.website.domain.PageResult;

import java.util.List;

/**
 * @author system
 * @since 2024-12-02 16:18:43
 */
public interface  AccessLogsService {

    PageResult<AccessLogs> findPage(AccessLogs params, Pageable pageable);

    List<AccessLogs> findList(AccessLogs params);

    AccessLogs findById(Long id);

    AccessLogs insert(AccessLogs accessLogs);

    AccessLogs update(AccessLogs accessLogs);

    void delete(Long id);

    List<MonthlyStatisticsDto> getMonthlyStatistics(Integer year);

    List<Object[]> getVisitStatsForYear(int year);
}